export ARCH=arm
export CROSS_COMPILE=arm-linux-gnueabihf-
CURRENT_PATH := $(shell pwd)
KERNELDIR := /home/nixiak/linux/linux_kernel

obj-m := MPUDriver.o

build: kernel_modules

kernel_modules:
	$(MAKE) -C $(KERNELDIR) M=$(CURRENT_PATH) modules

clean:
	$(MAKE) -C $(KERNELDIR) M=$(CURRENT_PATH) clean